package com.toby.ioc.aware;

import org.springframework.beans.factory.BeanNameAware;
import org.springframework.stereotype.Component;

/**
 * @desc: 获取bean的名称
 * @author: toby
 * @date: 2019/7/13 1:18
 */
@Component
public class TobyBeanNameAware implements BeanNameAware {
    @Override
    public void setBeanName(String name) {
        System.out.println("current bean name is :【"+name+"】");
    }
}
